<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>手术记录详情</title>
	<%- include('../_global/baseLibsJKDA') %>
	<link rel="stylesheet" href="/static/css/jkda/page-main.css"/>
	<!--<link rel="stylesheet" href="/static/css/public.css">-->

<style type="text/css">
html,body {
	width: 100%;
	height: 100%;
	margin: 0px;
}
 tr td {
    border: 1px solid #c8c8c8;
    padding: 0.71429rem 0.71429rem;
    font-size: 0.85714rem;
    color: #7a7a7a;
    text-align:center;
 } 
.padding4{
padding:0.41429rem ;
}
.padding0{
padding:0;
} 
</style>


</head>

<body>
<section class="page-inspect-detail">

	<!--</header><header class="header-box grey fixed">-->
	<!--<div class="header-content">-->
		<!--<div class="left-tool">-->
			<!--<a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>-->
		<!--</div>-->

		<!--<div class="title">手术记录详情</div>-->
	<!--</div>-->
   <!--aside class="inspect-detail-title">
       <span class="time">2010-01-31</span><span class="hospital">市中心医院</span><span class="name">任柳奎</span>
   </aside-->
   <table style="width:100%">
        <tbody id="detailTable">
      		<tr class="row">
      			<td class="col-xs-2 padding4">手术名称</td>
      			<td class="col-xs-3 padding4">手术时间</td>
      			<td class="col-xs-2 padding4">手术医生</td>
      			<td class="col-xs-2 padding4">助手</td>
      			<td class="col-xs-3 padding4">手术明细流水号</td>
      		</tr> 
      	
       </tbody>
   </table>
</section>
  
</body>

<script type="text/javascript">



    var page_ssjiDetail = (function($, page_ssjiDetail) {
        function indata(){
            var result = StoreCache.getCache("jkdaSsjlCache");
//			console.log(result);
            page_ssjiDetail.callBack(result);
        }

        function callBack(result){
            var trs = [];
            var results = result.split("^^");
            if(results[1]=="mz"){
                var bgzys = results[0].split("}|{");
                $(bgzys).each(function(){
                    var ssbgzy = this.split("^|^");
                    var ssmc = ssbgzy[0];
                    var ssys = ssbgzy[3];
                    var sszs = ssbgzy[4];
                    var sssj = ssbgzy[1];
                    var ssmxh = ssbgzy[7];

                    var tr1 = $("<tr>");
                    tr1.attr("class","row");
                    var td1 = $("<td>");
                    td1.attr("class","col-xs-3 padding4");
                    td1.html(ssmc);
                    td1.appendTo(tr1);
                    var td2 = $("<td>");
                    td2.attr("class","col-xs-3 padding4");
                    sssj = sssj.replace(/\s/g,"");
                    var sj = sssj.substr(8,sssj.length);
                    sssj = sssj.substr(0,8);
                    var str;
                    var date;
                    if(StringUtils.isEmpty(sssj)){
                        str = sssj;
                    }else{
                        date = new Date(sssj.replace(/(\d{4})(\d{2})(\d{2})/g,'$1-$2-$3'));
                        str = date.Format("yyyy-MM-dd");
                    }
                    td2.html(str+" "+sj);
                    td2.appendTo(tr1);
                    var td3 = $("<td>");
                    td3.attr("class","col-xs-2 padding4");
                    td3.html(ssys);
                    td3.appendTo(tr1);
                    var td4 = $("<td>");
                    td4.attr("class","col-xs-2 padding4");
                    td4.attr("style","word-break:break-all;");
                    td4.html(sszs);
                    td4.appendTo(tr1);
                    var td5 = $("<td>");
                    td5.attr("class","col-xs-3 padding4");
                    td5.attr("style","word-break:break-all;");
                    td5.html(ssmxh);
                    td5.appendTo(tr1);
                    trs.push(tr1);
                });

            }else if(results[1]=="zy"){
                var bgzys = results[0].split("}|{");
                $(bgzys).each(function(){
                    var ssbgzy = this.split("^|^");
                    var ssmc = ssbgzy[1];
                    var ssys = ssbgzy[2];
                    var sszs = ssbgzy[3];
                    var sssj = ssbgzy[0];
                    var ssmxh = ssbgzy[5];

                    var tr1 = $("<tr>");
                    tr1.attr("class","row");
                    var td1 = $("<td>");
                    td1.attr("class","col-xs-2 padding4");
                    td1.attr("style","word-break:break-all;");
                    td1.html(ssmc);
                    td1.appendTo(tr1);
                    var td2 = $("<td>");
                    td2.attr("class","col-xs-3 padding4");
                    sssj = sssj.replace(/\s/g,"");
                    var sj = sssj.substr(8,sssj.length);
                    sssj = sssj.substr(0,8);
                    var str;
                    var date;
                    if(StringUtils.isEmpty(sssj)){
                        str = sssj;
                    }else{
                        date = new Date(sssj.replace(/(\d{4})(\d{2})(\d{2})/g,'$1-$2-$3'));
                        str = date.Format("yyyy-MM-dd");
                    }
                    td2.html(str+" "+sj);
                    //td2.html(sssj);
                    td2.appendTo(tr1);
                    var td3 = $("<td>");
                    td3.attr("class","col-xs-2 padding4");
                    td3.html(ssys);
                    td3.appendTo(tr1);
                    var td4 = $("<td>");
                    td4.attr("class","col-xs-2 padding4");
                    td4.html(sszs);
                    td4.appendTo(tr1);
                    var td5 = $("<td>");
                    td5.attr("class","col-xs-3 padding4");
                    td5.attr("style","word-break:break-all;");
                    td5.html(ssmxh);
                    td5.appendTo(tr1);
                    trs.push(tr1);
                });

            }
            $("#detailTable").append(trs);
        }

        var cfg_def = {
            indata: indata,
            callBack: callBack,
        }

        page_ssjiDetail.init = function(cfg){
            $.extend(page_ssjiDetail, cfg_def, cfg);
            page_ssjiDetail.indata();

        }

        return page_ssjiDetail;
    })(jQuery, {});
	
</script>

</html>